# -*- coding: utf-8 -*-
# function 简单的 sqlite 操作
# __author__ = 'yeslf'


import sqlite3

class sqlitetool:

  def getcon(self):

     # get connected object
     con = sqlite3.connect("sql01.db")

     # get control  sqlite3 interface
     sqlinterface = con.cursor()

     # close coonect
     con.close()


  def excoutesql(self):

      con = sqlite3.connect("sql02.db")

      sqlinterface = con.cursor()

      sqlinterface.execute("crete database school;")

      con.close()


usetool = sqlitetool()

usetool.excoutesql()



